import defaultData from './data';
import { WeaInput, WeaLocaleProvider } from 'ecCom';
import { Row } from 'antd';
import Props from '../base/Props';
import DefaultVal from '../../../../common/default-value';

const getLabel = WeaLocaleProvider.getLabel;

export default class HiddenInput extends Props {
  renderDefaultValue() {
    const { data } = this.props;
    const { defaultValue } = data;

    return (
      <DefaultVal ecId={`${this && this.props && this.props.ecId || ''}_DefaultVal@p18qd6`}
        tip={getLabel(521397, '系统变量转换后，只能保存50个字符，超过将自动截取前50个字符')} 
        value={defaultValue}
        onChange={super.handlePropChange('defaultValue')}
      />
    );
  }
}